
#include "jxos_public.h"

void jxos_prepare_to_run_callback_handler(void);

void sys_debug_print_task_hal_init_callback_handler(void);
uint8_t sys_debug_print_task_send_finish_check_callback_handler(void);
void sys_debug_print_task_send_byte_callback_handler(uint8_t byte);

void sys_software_timer_task_hal_init_callback_handler(void);
void sys_software_timer_task_hal_start_callback_handler(void);
void sys_software_timer_task_hal_stop_callback_handler(void);

void standard_app_key_task_hal_init_callback_handler(void);
uint8_t standard_app_key_task_hal_read_pin_level_callback_handler(uint8_t key_num);

void standard_app_frame_send_task_hal_send_data_callback_handler(uint8_t* p, uint8_t len);

void jxos_hal_init(void)
{
	jxos_prepare_to_run_callback = jxos_prepare_to_run_callback_handler;
#if	(JXOS_SYS_SERVICE_DEBUG_PRINT_TASK_ENABLE == 1)
	sys_debug_print_task_hal_init_callback = sys_debug_print_task_hal_init_callback_handler;
	sys_debug_print_task_send_finish_check_callback = sys_debug_print_task_send_finish_check_callback_handler;
	sys_debug_print_task_send_byte_callback = sys_debug_print_task_send_byte_callback_handler;
#endif
	sys_software_timer_task_hal_init_callback = sys_software_timer_task_hal_init_callback_handler;
	sys_software_timer_task_hal_start_callback = sys_software_timer_task_hal_start_callback_handler;
	sys_software_timer_task_hal_stop_callback = sys_software_timer_task_hal_stop_callback_handler;

#if	(JXOS_STANDARD_APP_KEY_TASK_ENABLE == 1)
	standard_app_key_task_hal_init_callback = standard_app_key_task_hal_init_callback_handler;
	standard_app_key_task_hal_read_pin_level_callback = standard_app_key_task_hal_read_pin_level_callback_handler;
#endif
}

void app_test_task_init(void);
void app_test1_task_init(void);
void mcu_to_zigbee_task_init(void);
void jsnet_test_task_init(void);
void pc_key_task_init(void);
void mb_test_task_init(void);
void jxos_user_task_init(void)
{
//	app_test_task_init();
//	app_test1_task_init();
//    mcu_to_zigbee_task_init();
    pc_key_task_init();
    jsnet_test_task_init();
//	mb_test_task_init();
}
